﻿<Page x:Class="Ricciolo.PaperBoy.UI.NavigationErrorPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="NavigationErrorPage"
	x:Name="page">
	<Page.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="Resources/Icons.xaml" />
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</Page.Resources>

	<Page.Background>
		<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
			<GradientStop Color="White" Offset="0" />
			<GradientStop Color="{DynamicResource {x:Static SystemColors.ControlColorKey}}" Offset="1" />
		</LinearGradientBrush>
	</Page.Background>

	<Grid Margin="10,20">

		<Grid.RowDefinitions>

		</Grid.RowDefinitions>

		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto" />
			<ColumnDefinition />
		</Grid.ColumnDefinitions>

		<Control Grid.Column="0" Grid.Row="0" VerticalAlignment="Top" Width="80" Template="{StaticResource WebPage}" />

		<StackPanel Grid.Column="1" Grid.Row="0" Margin="10">
			<TextBlock FontSize="20" FontWeight="Bold" Text="{Binding ElementName=page,Path=Exception.Message}" />

			<TextBlock FontSize="18" Margin="0,4" Text="{Binding ElementName=page,Path=Exception.Status}" />

			<TextBlock FontSize="18" Margin="0,4" FontStyle="Italic" Text="Please try again later..." />
		</StackPanel>
	</Grid>
</Page>
